#!/bin/sh

echo "Is it morning? Please answer yes or no"

read timeofday

case "$timeofday" in
  yes) echo "Good morining" ;;
  no) echo "Good Afternoon" ;;
  y) echo "Good morining" ;;
  n) echo "Good Afternoon" ;;
  *) echo "Sorry, answer not recognized" ;;
esac

exit 0
